package decorators;

import contracts.ContractException;
import services.BombeService;

public class BombeDecorator implements BombeService{
	private BombeService delegate;
	
	public BombeDecorator(BombeService delegate){
		this.delegate = delegate;
	}
	
	@Override
	public int getNumero() {
		return this.delegate.getNumero();
	}

	@Override
	public int getX() {
		return this.delegate.getX();
	}

	@Override
	public int getY() {
		return this.delegate.getY();
	}

	@Override
	public int getAmplitude() {
		return this.delegate.getAmplitude();
	}

	@Override
	public int getCompteARebours() {
		return this.delegate.getCompteARebours();
	}
	
	@Override
	public void setCompteARebours(int n){
		this.delegate.setCompteARebours(n);
	}

	@Override
	public boolean vaExploser() {
		return this.delegate.vaExploser();
	}

	@Override
	public void init(int numero, int x, int y, int amplitude) throws ContractException{
		this.delegate.init(numero, x, y, amplitude);
	}

}
